// 对外暴露的默认配置路由（常量路由）
export const constantRoute = [
  {
    // 登录页面
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    name: "login" // 命名路由：用来做路由权限
  },
  {
    // 登录成功以后展示数据的路由
    path: "/",
    component: () => import("@/views/home/index.vue"),
    name: "layout"
  },
  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    name: "404"
  },
  {
    // 任意路由：除以上路由外的任意路由
    path: "/:pathMatch(.*)*",
    // 重定向
    redirect: "/404",
    name: "Any"
  }
];
